<script type='text/javascript' >

                        setOverlayHTML();
                        cdInterval=null;
                        setTimeout("enableXButton()",5000);
                        setTimeout("setFooterHTML()",120000);
                        setInterval("setFooterHTML_s()",300000);
                        var player = null;
                        function playerReady(thePlayer) {
                            player = window.document[thePlayer.id];

                        }
                        function enableXButton(){
                            document.getElementById("closexbutton").style.display = 'block';
                        }
                        cdInterval=null;
                        function setBannerHTML(banner_html)
                        {
                            document.getElementById("banner_container").innerHTML = banner_html;
                        }
                        function removeBannerHTML()
                        {
                            document.getElementById("banner_container").innerHTML = "";
                        }
                        function thisMovie(movieName) {
                            if (navigator.appName.indexOf("Microsoft") != -1) {
                                return window[movieName];
                            } else {
                                return document.getElementById(movieName);
                            }
                        }

                        function setOverlayHTML()
                        {
                            removeFooterHTML();
                            document.getElementById("ad_overlay_content").innerHTML = "<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC='http://ad.yieldads.com/st?ad_type=iframe&amp;ad_size=300x250&amp;section=2594411'></IFRAME>";
                            document.getElementById("countdownnum").innerHTML="30";
                            cdInterval=setInterval("countDown()",1000);
                            document.getElementById("ad_overlay").style.display="";
                        }

                        function setFooterHTML()
                        {
                            document.getElementById("ad_footer_content").innerHTML = "<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC='http://ad.yieldads.com/st?ad_type=iframe&amp;ad_size=300x250&amp;section=2594411'></IFRAME>";
                            document.getElementById("countDownnumTimeout").innerHTML="15";
                            cdInterval=setInterval("countDownTimeout()",1000);
                            document.getElementById("ad_footer").style.display="";
                        }
                        function setFooterHTML_s()
                        {   
                           
                            document.getElementById("ad_footer_content_s").innerHTML = "<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=468 HEIGHT=60 SRC='http://hd44-online.blogspot.com/p/ad-468.html'></IFRAME>";
                            document.getElementById("ad_footer_s").style.display="";
                           
                        }

                        function removeOverlayHTML()
                        {
                            document.getElementById("ad_overlay_content").innerHTML = "";
                            document.getElementById("ad_overlay").style.display="none";
                            cdInterval=0;
                            document.getElementById("countdownnum").innerHTML=0;
                            player.sendEvent("PLAY", true);
                        }

                        function removeFooterHTML()
                        {
                            document.getElementById("ad_footer_content").innerHTML = "";
                            document.getElementById("ad_footer").style.display="none";
                            cdInterval=0;
                            document.getElementById("countDownnumTimeout").innerHTML=0;

                        }
                        function removeFooterHTML_s()
                        {
                            document.getElementById("ad_footer_content_s").innerHTML = "";
                            document.getElementById("ad_footer_s").style.display="none";
                        }

                        function countDown()
                        {
                            currentCD=parseInt(document.getElementById("countdownnum").innerHTML);
                            if (currentCD==1)
                                removeOverlayHTML();
                            else
                                document.getElementById("countdownnum").innerHTML=(currentCD-1);
                        }

                        function countDownTimeout()
                        {
                            currentCD=parseInt(document.getElementById("countDownnumTimeout").innerHTML);
                            if (currentCD==1)
                                removeFooterHTML();
                            else
                                document.getElementById("countDownnumTimeout").innerHTML=(currentCD-1);
                        }

                    </script>
